﻿<UserControl x:Class="EX_NFC.FrontEnd.Windows.View.Mifare1KView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Controls="clr-namespace:EX_NFC.FrontEnd.Windows.Controls"
             xmlns:Mifare1K="clr-namespace:EX_NFC.FrontEnd.Windows.Controls.Mifare1K"
             mc:Ignorable="d"
             DataContext="{Binding Mifare1K, Source={StaticResource Locator}}">

    <DockPanel>
        <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_TagInfoGroup}"
                  DockPanel.Dock="Top"
                  VerticalAlignment="Top">
            <Controls:TagInfoControl DataContext="{Binding Tag.TagInfo}" />
        </GroupBox>
        <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_TagAuthenticationGroup}"
                  DockPanel.Dock="Top">
            <Controls:TagAuthenticateControl />
        </GroupBox>
        <DockPanel DockPanel.Dock="Top"
                   LastChildFill="False">
            <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_TagBlockValueGroup}"
                      DockPanel.Dock="Right">
                <Controls:TagBlockValue />
            </GroupBox>
            <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_TagBlockGroup}"
                      DockPanel.Dock="Right">
                <Controls:TagBlock />
            </GroupBox>
            <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_BlockCopyGroup}"
                      DockPanel.Dock="Right">
                <Controls:TagCopyBlockControl />
            </GroupBox>
        </DockPanel>
        <GroupBox Header="{Binding Source={StaticResource Localizer},Path=Localize.TagPage_TagAuthorizationGroup}"
                  DockPanel.Dock="Bottom"
                  VerticalAlignment="Bottom">
            <Mifare1K:TagAuthorizationControl />
        </GroupBox>
    </DockPanel >
</UserControl>
